package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-11-26 14:20:28.479
 */
@Entity
@Table(name = "ccs_sec_role",catalog = "ccsdb")
public class CcsSecRole implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "ccs_sec_role";

    /**角色ID */
	public static final String ALIAS_ROID = "roid";
    /**角色名称 */
	public static final String ALIAS_ROLE_NAME = "role_name";
    /**角色描述 */
	public static final String ALIAS_ROLE_DESC = "role_desc";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "roid", unique = true, nullable = false)
    public java.lang.Long roid;
  
 	@Column(name = "role_name")
    public java.lang.String roleName;
  
 	@Column(name = "role_desc")
    public java.lang.String roleDesc;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;

 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  





	public java.lang.Long getRoid() {
		return this.roid;
	}
	
	public void setRoid(java.lang.Long value) {
		this.roid = value;
	}

	public java.lang.String getRoleName() {
		return this.roleName;
	}
	
	public void setRoleName(java.lang.String value) {
		this.roleName = value;
	}

	public java.lang.String getRoleDesc() {
		return this.roleDesc;
	}
	
	public void setRoleDesc(java.lang.String value) {
		this.roleDesc = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}


	
	public CcsSecRole() {
	}
	
	public CcsSecRole(boolean qryflag) {
	    if(qryflag){
	    		this.roid = null;
				this.roleName = null;
				this.roleDesc = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
			    }
	}


	public CcsSecRole(
	    java.lang.Long inRoid,
	    java.lang.String inRoleName,
	    java.lang.String inRoleDesc,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.util.Date inUpdateTime
	 ) {
		super();
				this.roid = inRoid;
				this.roleName = inRoleName;
				this.roleDesc = inRoleDesc;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
			}





}

